package com.cimu.activemq.doublequeue;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsMessagingTemplate;
import org.springframework.stereotype.Component;

import javax.jms.Queue;

/**
 * Title: DoubleQueueProducer
 * Copyright: Copyright (c) 2017
 *
 * date 2018年12月09日 13:51
 */
@Component
public class DoubleQueueProducer {
    @Autowired
    private JmsMessagingTemplate jmsTemplate;
    @Autowired
    private Queue oneQueue;

    public void send(String msg) {
        this.jmsTemplate.convertAndSend(this.oneQueue, msg);
    }


}
